//package com.kiki.stater.security.jwt;
//
//import org.springframework.security.core.GrantedAuthority;
//import org.springframework.security.core.userdetails.UserDetails;
//
//import java.util.Collection;
//import java.util.Date;
//
///**
// * Created by mazeyi on 2021/1/21.
// */
//public class JwtUser implements UserDetails {
//    private final   Integer id;
//    private final  Integer state;
//    private final String username;
//    private final String password;
//    private final String email;
//    private final  Collection<? extends GrantedAuthority> authorities;
//    private final boolean enabled;
//    private final Date lastPasswordResetDate;
//
//
//    public JwtUser(Integer id, Integer state, String username, String password, String email, Collection<? extends GrantedAuthority> authorities, boolean enabled, Date lastPasswordResetDate) {
//        this.id = id;
//        this.state = state;
//        this.username = username;
//        this.password = password;
//        this.email = email;
//        this.authorities = authorities;
//        this.enabled = enabled;
//        this.lastPasswordResetDate = lastPasswordResetDate;
//    }
//
//    @Override
//    public Collection<? extends GrantedAuthority> getAuthorities() {
//        return authorities;
//    }
//
//    @Override
//    public String getPassword() {
//        return password;
//    }
//
//    @Override
//    public String getUsername() {
//        return username;
//    }
//
//    @Override
//    public boolean isAccountNonExpired() {
//        return true;
//    }
//
//    @Override
//    public boolean isAccountNonLocked() {
//        return false;
//    }
//
//    @Override
//    public boolean isCredentialsNonExpired() {
//        return false;
//    }
//
//    @Override
//    public boolean isEnabled() {
//        return false;
//    }
//}